import java.util.Scanner;

// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);
        int price = console.nextInt();
        int cost = 0;

        //write your code here......
        if(price >= 100 && price < 500){
            cost = (int)(cost * 0.9);
        }
        if(price >= 500 && price < 2000){
            cost = (int)(cost * 0.8);
        }
        if(price >= 2000 && price < 5000){
            cost = (int)(cost * 0.7);
        }
        if(price >=5000){
            cost = (int)(cost * 0.6);
        }
        System.out.println(cost);
    }
}